import { lazyInst, assignImports, PATHS } from "../util/module";

export const core = lazyInst<CoreModule>();
export const _assign_ = { core };

assignImports(
  core,
  PATHS.reduce((ac, p) => ({ ...ac, ...import.meta.glob(p) }), {})
);

declare global {
  interface SrcModule {
    core: CoreModule;
  }
}
